<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:60:"D:\phpStudy\WWW\auth/application/admin\view\index\index.html";i:1496312829;s:60:"D:\phpStudy\WWW\auth/application/admin\view\public\base.html";i:1496201816;}*/ ?>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>高级管理员</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<!--[if lt IE 9]>
    	<meta http-equiv="refresh" content="0;ie.html" />
    	<![endif]-->
		<link rel="shortcut icon" href="favicon.ico">
		<link href="__CSS__/bootstrap.min.css" rel="stylesheet">
		<link href="__CSS__/font-awesome.min.css" rel="stylesheet">
		<link href="__CSS__/animate.min.css" rel="stylesheet">
		<link href="__CSS__/style.min.css" rel="stylesheet">
		<link href="__CSS__/admin.css" rel="stylesheet">
	</head>
	<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
		<div id="wrapper">
			<!--左侧导航开始-->
			<nav class="navbar-default navbar-static-side" role="navigation">
				<div class="nav-close"><i class="fa fa-times-circle"></i>
				</div>
				<div class="sidebar-collapse">
					<ul class="nav" id="side-menu">
						<li class="nav-header" style="height: 60px;padding: 0; text-align: center;line-height: 60px; color: #FFFFFF; font-size: 20px; ">
                               <strong><?php echo session('admin_name'); ?></strong>
						</li>
						<?php if(!empty($menu)): if(is_array($menu) || $menu instanceof \think\Collection): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): ?>
						<li class="menu">
							<a href="<?php echo $vo['name']; ?>">
								<i class="<?php echo $vo['icon']; ?>"></i>
								<span class="nav-label"><?php echo $vo['title']; ?> </span>
								<span class="fa arrow"></span>
							</a>
							<ul class="nav nav-second-level">
								<?php if(!empty($vo['children'])): if(is_array($vo['children']) || $vo['children'] instanceof \think\Collection): if( count($vo['children'])==0 ) : echo "" ;else: foreach($vo['children'] as $key=>$v): ?>
								<li>
									<a href="<?php echo url($v['name']); ?>"><?php echo $v['title']; ?></a>
								</li>
								<?php endforeach; endif; else: echo "" ;endif; endif; ?>
							</ul>
						</li>
						<?php endforeach; endif; else: echo "" ;endif; endif; ?>
					</ul>
				</div>
			</nav>
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1">
				<div class="row border-bottom">
					<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
						<div class="navbar-header">
							<a class="navbar-minimalize minimalize-styl-2 btn btn-primary" href="#">
								<i class="fa fa-bars"></i>
							</a>
						</div>
						<ul class="nav navbar-top-links navbar-left">
							<li class="hidden-xs" id='shouye'>
							<a href="<?php echo url('admin/index/index'); ?>">
								&nbsp;&nbsp;<i class="fa fa-home"></i>首页&nbsp;&nbsp;
							</a>
							</li>
							<li class="hidden-xs">
								<a href=<?php echo url('adminmall/UnionStore/index'); ?>>
									<i class="fa fa-users"></i>联盟商家</a>
							</li>
							<li>
								<a href=<?php echo url('adminmall/ConsMember/index',array('active'=>1)); ?>><i class="fa fa-user"></i>合伙人</a>
							</li>
							<li>
								<a href=<?php echo url('admin/Member/index',array('active'=>2)); ?>><i class="fa fa-user-plus"></i>加盟商申请</a>
							</li>
							<li>
								<a href=<?php echo url('adminmall/Scorec/index',array('active'=>3)); ?>><i class="fa fa-yen"></i>提现申请</a>
							</li>
							<li>
								<a href=<?php echo url('adminmall/Order/index',array('active'=>6)); ?>><i class="fa fa-shopping-cart"></i>订单管理</a>
							</li>
						</ul>
						<ul class="nav navbar-top-links navbar-right">
							<li class="hidden-xs">
								<a href="<?php echo url('system/clear'); ?>">
									<i class="fa fa-refresh"></i>清除缓存
								</a>
							</li>
							<li class="hidden-xs">
								<a href="<?php echo url('login/logout'); ?>"><i class="fa fa-sign-out"></i>退出系统</a>
							</li>
						</ul>
					</nav>
				</div>
				<div class="row">
					
<div class="row content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="<?php echo url('index/index'); ?>"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>首页</strong></li>
	</ol>
</div>

<body class="gray-bg">
	<div class="wrapper wrapper-content">
		<div class="row">
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-success pull-right">年</span>
						<h5>线上会员</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $count_member; ?></h1>
						<div class="stat-percent font-bold text-success"><?php echo $count_jinmember; ?>个<i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-info pull-right">年</span>
						<h5>线下会员</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $count_line_member; ?></h1>
						<div class="stat-percent font-bold text-info"><?php echo $count_line_jinmember; ?>个 <i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-primary pull-right">年</span>
						<h5>合伙人</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $count_hehuoren; ?></h1>
						<div class="stat-percent font-bold text-navy"><?php echo $count_shehuoren; ?> 个<i class="fa fa-bolt"></i>
						</div>
						<small>申请合伙人</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-danger pull-right">年</span>
						<h5>商家</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $count_shangjia; ?></h1>
						<div class="stat-percent font-bold text-danger"><?php echo $count_sshangjia; ?> 个<i class="fa fa-bolt"></i>
						</div>
						<small>加盟商</small>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>商城订单</h5>
						<div class="pull-right">
							<div class="btn-group">
								<button type="button" class="btn btn-xs btn-white">年</button>
							</div>
						</div>
					</div>
					<div class="ibox-content">
						<div class="row">
							<div class="col-sm-9">
								<div class="flot-chart">
									<div class="flot-chart-content" id="flot-dashboard-chart"></div>
								</div>
							</div>
							<div class="col-sm-3">
								<ul class="stat-list">
									<li>
										<h2 class="no-margins"><?php echo $count_wei_order; ?></h2>
										<small>未发货</small>
										<div class="stat-percent"><?php echo $count_wei_bfb; ?>%<i class="fa fa-bolt text-navy"></i>
										</div>
										<div class="progress progress-mini">
											<div style="width: <?php echo $count_wei_bfb; ?>%;" class="progress-bar"></div>
										</div>
									</li>
									<li>
										<h2 class="no-margins "><?php echo $count_yi_order; ?></h2>
										<small>未收货</small>
										<div class="stat-percent"><?php echo $count_yi_bfb; ?>% <i class="fa fa-bolt text-navy"></i>
										</div>
										<div class="progress progress-mini">
											<div style="width: <?php echo $count_yi_bfb; ?>%;" class="progress-bar"></div>
										</div>
									</li>
									<li>
										<h2 class="no-margins "><?php echo $count_wan_order; ?></h2>
										<small>已完成</small>
										<div class="stat-percent"><?php echo $count_wan_bfb; ?>% <i class="fa fa-bolt text-navy"></i>
										</div>
										<div class="progress progress-mini">
											<div style="width: <?php echo $count_wan_bfb; ?>%;" class="progress-bar"></div>
										</div>
									</li>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>

		
		<div class="row">
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-info pull-right">年</span>
						<h5>商家余额</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $sjz_score[0]['zmoney']; ?></h1>
						
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-success pull-right">年</span>
						<h5>商家积分</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $sjz_score[0]['hscroe']; ?></h1>
						<div class="stat-percent font-bold text-success"><?php echo $sjc_jinscore[0]['hscroe']; ?> <i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-success pull-right">年</span>
						<h5>商家佣金</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins">00</h1>
						
					</div>
				</div>
			</div>
			
			
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-primary pull-right">年</span>
						<h5>商家提现</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $tmoney[0]['tmoney']; ?></h1>
						<div class="stat-percent font-bold text-navy"><?php echo $jin_tmoney[0]['tmoney']; ?><i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
			
		</div>
<div class="row">
	<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-info pull-right">年</span>
						<h5>会员余额</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $member_balance[0]['member_balance']; ?></h1>
						<div class="stat-percent font-bold text-info"> <i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-primary pull-right">年</span>
						<h5>会员积分</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $member_integral[0]['member_integral']; ?></h1>
						<div class="stat-percent font-bold text-navy"> <?php echo $jin_member_integral[0]['jin_member_integral']; ?><i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-danger pull-right">年</span>
						<h5>会员佣金</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $member_balance[0]['member_balance']; ?></h1>
						<div class="stat-percent font-bold text-danger"><?php echo $jin_member_balance[0]['jin_member_balance']; ?> <i class="fa fa-bolt"></i>
						</div>
						<small>佣金</small>
					</div>
				</div>
			</div>
			<div class="col-sm-3">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<span class="label label-danger pull-right">年</span>
						<h5>会员提现</h5>
					</div>
					<div class="ibox-content">
						<h1 class="no-margins"><?php echo $member_money[0]['member_money']; ?></h1>
						<div class="stat-percent font-bold text-danger"><?php echo $jin_member_money[0]['jin_member_money']; ?> <i class="fa fa-bolt"></i>
						</div>
						<small>今日</small>
					</div>
				</div>
			</div>
		</div>

	</div>
</body>

				</div>
			</div>
			<!--右侧部分结束-->
		</div>
		<div class="footer">
			<div class="pull-right"> 版权所有CMS Project &copy; 2017-2020 版权所有</div>
		</div>
		<script src="__JS__/jquery.min.js"></script>
		<script src="__JS__/bootstrap.min.js"></script>
		<script src="__JS__/jquery.metisMenu.js"></script>
		<script src="__JS__/jquery.slimscroll.min.js"></script>
		<script src="__LIB__/layer/layer.js"></script>
		<script src="__JS__/core.min.js"></script>
		<script src="__JS__/pace.min.js"></script>
		<script src="__JS__/help.js"></script>
		<script>
			// 文件上传URL
			var __UPLOAD_URL__ = "<?php echo url('admin/upload/index'); ?>";
			var __CURRENT_URL__ = "<?php echo $current_url; ?>";
		</script>
		<script src="__JS__/admin.js"></script>
		<script>
			var show="<?php echo $is_show_left; ?>";
			if(show==0){
				$("body").toggleClass("mini-navbar"), SmoothlyMenu();
			}
		</script>
		
<script src="__JS__/flot/jquery.flot.js"></script>
<script src="__JS__/flot/jquery.flot.tooltip.min.js"></script>
<script src="__JS__/flot/jquery.flot.spline.js"></script>
<script src="__JS__/flot/jquery.flot.pie.js"></script>
<script src="__JS__/flot/jquery.flot.symbol.js"></script>
<script src="__JS__/flot/jquery.peity.min.js"></script>
<script src="__JS__/flot/peity-demo.min.js"></script>
<script src="__JS__/flot/content.min.js?v=1.0.0"></script>
<script src="__JS__/flot/jquery-ui.min.js"></script>
<script src="__JS__/flot/jquery-jvectormap-1.2.2.min.js"></script>
<script src="__JS__/flot/jquery-jvectormap-world-mill-en.js"></script>
<script src="__JS__/flot/jquery.easypiechart.js"></script>
<script src="__JS__/flot/jquery.sparkline.min.js"></script>
<script src="__JS__/flot/sparkline-demo.min.js"></script>
<script>
	$(document).ready(function() {
		$(".chart").easyPieChart({
			barColor: "#f8ac59",
			scaleLength: 5,
			lineWidth: 4,
			size: 80
		});
		$(".chart2").easyPieChart({
			barColor: "#1c84c6",
			scaleLength: 5,
			lineWidth: 4,
			size: 80
		});
		var data2 = [
			[gd(2012, 1, 1), ],
			[gd(2012, 1, 2), ],
			[gd(2012, 1, 3), ],
			[gd(2012, 1, 4), ],
			[gd(2012, 1, 5), ],
			[gd(2012, 1, 6), ],
			[gd(2012, 1, 7), ],
			[gd(2012, 1, 8), ],
			[gd(2012, 1, 9), ],
			[gd(2012, 1, 10), ],
			[gd(2012, 1, 11), ],
			[gd(2012, 1, 12), ],
			[gd(2012, 1, 13), ],
			[gd(2012, 1, 14), ],
			[gd(2012, 1, 15),],
			[gd(2012, 1, 16), ],
			[gd(2012, 1, 17), ],
			[gd(2012, 1, 18), ],
			[gd(2012, 1, 19), ],
			[gd(2012, 1, 20), ],
			[gd(2012, 1, 21), ],
			[gd(2012, 1, 22), ],
			[gd(2012, 1, 23), ],
			[gd(2012, 1, 24), ],
			[gd(2012, 1, 25), ],
			[gd(2012, 1, 26), ],
			[gd(2012, 1, 27), ],
			[gd(2012, 1, 28), ],
			[gd(2012, 1, 29), ],
			[gd(2012, 1, 30), ],
			[gd(2012, 1, 31), ]
		];
		var data3 = [
			[gd(2012, 1, 1),21],
			[gd(2012, 1, 2), 12],
			[gd(2012, 1, 3), 3],
			[gd(2012, 1, 4), 2],
			[gd(2012, 1, 5), 1],
			[gd(2012, 1, 6), 2],
			[gd(2012, 1, 7), 3],
			[gd(2012, 1, 8), 4],
			[gd(2012, 1, 9), 5],
			[gd(2012, 1, 10), 6],
			[gd(2012, 1, 11), 7],
			[gd(2012, 1, 12), 8],
			[gd(2012, 1, 13), 6],
			[gd(2012, 1, 14), 4],
			[gd(2012, 1, 15), 3],
			[gd(2012, 1, 16), 2],
			[gd(2012, 1, 17), 1],
			[gd(2012, 1, 18), 3],
			[gd(2012, 1, 19), 4],
			[gd(2012, 1, 20), 34],
			[gd(2012, 1, 21), 3],
			[gd(2012, 1, 22), 2],
			[gd(2012, 1, 23), 3],
			[gd(2012, 1, 24), 4],
			[gd(2012, 1, 25), 5],
			[gd(2012, 1, 26), 6],
			[gd(2012, 1, 27), 6],
			[gd(2012, 1, 28), 7],
			[gd(2012, 1, 29), 8],
			[gd(2012, 1, 30), 2],
			[gd(2012, 1, 31), 2]

		];
		var dataset = [{
			label: "订单数",
			data: data3,
			color: "#1ab394",
			bars: {
				show: true,
				align: "center",
				barWidth: 24 * 60 * 60 * 600,
				lineWidth: 0
			}
		}, {
			label: "付款数",
			data: data2,
			yaxis: 2,
			color: "#464f88",
			lines: {
				lineWidth: 1,
				show: true,
				fill: true,
				fillColor: {
					colors: [{
						opacity: 0.2
					}, {
						opacity: 0.2
					}]
				}
			},
			splines: {
				show: false,
				tension: 0.6,
				lineWidth: 1,
				fill: 0.1
			},
		}];
		var options = {
			xaxis: {
				mode: "time",
				tickSize: [1, "day"],
				tickLength: 0,
				axisLabel: "Date",
				axisLabelUseCanvas: true,
				axisLabelFontSizePixels: 12,
				axisLabelFontFamily: "Arial",
				axisLabelPadding: 10,
				color: "#838383"
			},
			yaxes: [{
				position: "left",
				max: 20,
				color: "#838383",
				axisLabelUseCanvas: true,
				axisLabelFontSizePixels: 12,
				axisLabelFontFamily: "Arial",
				axisLabelPadding: 3
			}, {
				position: "right",
				clolor: "#838383",
				axisLabelUseCanvas: true,
				axisLabelFontSizePixels: 12,
				axisLabelFontFamily: " Arial",
				axisLabelPadding: 67
			}],
			legend: {
				noColumns: 1,
				labelBoxBorderColor: "#000000",
				position: "nw"
			},
			grid: {
				hoverable: false,
				borderWidth: 0,
				color: "#838383"
			}
		};

		function gd(year, month, day) {
			return new Date(year, new Date().getMonth(), day).getTime()
		}
		var previousPoint = null,
			previousLabel = null;
		$.plot($("#flot-dashboard-chart"), dataset, options);
		var mapData = {
			"US": 298,
			"SA": 200,
			"DE": 220,
			"FR": 540,
			"CN": 120,
			"AU": 760,
			"BR": 550,
			"IN": 200,
			"GB": 120,
		};
		$("#world-map").vectorMap({
			map: "world_mill_en",
			backgroundColor: "transparent",
			regionStyle: {
				initial: {
					fill: "#e4e4e4",
					"fill-opacity": 0.9,
					stroke: "none",
					"stroke-width": 0,
					"stroke-opacity": 0
				}
			},
			series: {
				regions: [{
					values: mapData,
					scale: ["#1ab394", "#22d6b1"],
					normalizeFunction: "polynomial"
				}]
			},
		})
	});
</script>

	</body>

</html>